package com.zhangfei.cilent;

import com.zhang.entity.Employee;
import com.zhang.entity.Examine;
import com.zhang.entity.Feedback;
import com.zhang.entity.Retuntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author: 96199
 * @className: IUserClient
 * @description:
 * @date: 2021/6/23 10:47
 * @version: 0.1
 * @since: jdk1.8
 */
@FeignClient(name = "nacos-user",fallback = UserClientFallback.class)
public interface IUserClient {
    @GetMapping("/user/{uid}")
    Employee getEm(@PathVariable("uid") String uid);

    @GetMapping("/user/Employ/allEm")
    List<Employee> getEms();

    @PostMapping("/user/getEm/one")
    Employee getEmPl(@RequestBody Employee employee);
}
